From d92e41628fa0e9b4757289b4e559f3b7064f5a55 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Fri, 24 Nov 2006 21:55:52 +0000 Subject: [PATCH] Remove (shpopen) warning on FreeBSD. --- gpsbabel/shapelib/shpopen.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gpsbabel/shapelib/shpopen.c b/gpsbabel/shapelib/shpopen.c index b6ffdc866..ffb38a29b 100644 --- a/gpsbabel/shapelib/shpopen.c +++ b/gpsbabel/shapelib/shpopen.c @@ -1,5 +1,5 @@ /****************************************************************************** - * $Id: shpopen.c,v 1.4 2006-07-13 03:27:54 robertl Exp $ + * $Id: shpopen.c,v 1.5 2006-11-24 21:55:52 oliskoli Exp $ * * Project: Shapelib * Purpose: Implementation of core Shapefile read/write functions. @@ -34,6 +34,10 @@ ****************************************************************************** * * $Log: not supported by cvs2svn $ + * Revision 1.4 2006/07/13 03:27:54 robertl + * Andy Armstrong turns on -Wall for GCC builds and kills about a sequillion warnings. Most of them aren't "real", but it's still a good thing to clean up. + * (I hope I don't regret this before 1.3.1...) + * * Revision 1.3 2006/05/07 02:14:35 robertl * Make shapefile and all palm pdb formats deselectable at build time. * @@ -168,7 +172,7 @@ */ /*static char rcsid[] = - "$Id: shpopen.c,v 1.4 2006-07-13 03:27:54 robertl Exp $";*/ + "$Id: shpopen.c,v 1.5 2006-11-24 21:55:52 oliskoli Exp $";*/ #include "shapefil.h" #include "config.h" @@ -929,6 +933,7 @@ SHPWriteObject(SHPHandle psSHP, int nShapeId, SHPObject * psObject ) uchar *pabyRec; int32 i32; + nRecordSize = 0; psSHP->bUpdated = TRUE; /* -------------------------------------------------------------------- */ -- 2.30.2